package com.example.server;



import com.example.silvercare.R;

import android.content.Intent;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.Preference.OnPreferenceClickListener;


public class GetFriendLocation extends PreferenceActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		// Load the preferences from an XML resource
		addPreferencesFromResource(R.layout.friendlocationservice);

		Preference friendlistPref = (Preference) findPreference("friendlistPref");
		friendlistPref.setOnPreferenceClickListener(new OnPreferenceClickListener(){

			@Override
			public boolean onPreferenceClick(Preference arg0) {
				// TODO Auto-generated method stub
				startActivity(new Intent("com.example.server.FriendListActivity"));
				return false;
			}
			
		});

		Preference allfriendlocationPref = (Preference) findPreference("allfriendlocationPref");
		allfriendlocationPref.setOnPreferenceClickListener(new OnPreferenceClickListener(){

			@Override
			public boolean onPreferenceClick(Preference arg0) {
				// TODO Auto-generated method stub
				startActivity(new Intent("com.example.server.GetAllFriendsLocationSetting"));
				return false;
			}
			
		});
	}

}
